<?php
/**
 * Created by PhpStorm.
 * User: lenovo
 * Date: 2018/10/13
 * Time: 10:19
 */
header("Content-Type:text/html;charset=utf-8");
include 'includes/init.php';
$member = $_REQUEST['member'];

$data = array();
//提取所有值，去除空值
foreach ($member as $value){
    if (!empty($value))
        $data[] = $value;
}
$back = null;
foreach ($data as $datum){
    $back = $back."$datum;";
}


if ($db_Obj->insert_str("t_check_member",$back)){
    echo "<script>
alert('修改成功');
window.location.href = 'index.php';
</script>";
} else {
    echo "<script>alert('修改失败')</script>";
}